diff --git a/profiler_builder.info b/profiler_builder.info
index 46fd760..06e34ab 100644
--- a/profiler_builder.info
+++ b/profiler_builder.info
@@ -1,8 +1,6 @@
 ; $Id: profiler_builder
 name = "Profiler Builder"
-description = "Helper module for profiler to build distributions even faster"
+description = "Helper module for profiler to build distributions even faster; ported to D7"
+version = 1.0
 package = Development
-version = "6.x-1.0-alpha1"
-core = "6.x"
-project = "profiler_builder"
-project status url = "http://drupal.psu.edu/fserver"
+core = "7.x"
diff --git a/profiler_builder.module b/profiler_builder.module
index 484993e..976ef00 100644
--- a/profiler_builder.module
+++ b/profiler_builder.module
@@ -10,18 +10,17 @@
 //12 Borland
 //University Park,  PA 16802
 /**
- * Implementation of hook_perm()
+ * Implementation of hook_permission()
  */
-function profiler_builder_perm() {
+function profiler_builder_permission() {
   return array('administer profiler builder');
 }
-
 /**
  * Implementation of hook_menu().
  */
 function profiler_builder_menu() {
   $items = array();
-  $items['admin/settings/profiler_builder'] = array(
+  $items['admin/config/development/profiler_builder'] = array(
     'title' => 'Profiler Builder',
     'page callback' => 'drupal_get_form',
     'page arguments' => array('_profiler_builder_settings'),
@@ -30,7 +29,6 @@ function profiler_builder_menu() {
   );
   return $items;
 }
-
 /**
  * Implementation of hook_settings()
  */
@@ -40,7 +38,7 @@ function _profiler_builder_settings() {
   _profiler_builder_info_file($info, $vars, $drush);
   //info file
   $form['info_file'] = array(
-    '#weight' => '0',
+    '#weight' => '-1',
     '#description' => t('This is what the .info file would look like if you were to make a distribution off of this site as it exists currently.'),
     '#collapsed' => '1',
     '#type' => 'fieldset',
@@ -79,16 +77,19 @@ function _profiler_builder_settings() {
   );
   return $form;  
 }
-
 //helper function to build out the file pieces
 function _profiler_builder_info_file(&$info, &$vars, &$drush) {
-  //build the array we need
-  $result = db_query("SELECT * FROM {system} WHERE status=1 AND type='module'");
-  while ($val = db_fetch_array($result)) {
-  $system[$val['name']] = unserialize($val['info']);  
+  //build the array we need  
+  $result = db_select('system', 's')
+  ->fields('s', array('status', 'type','name','info'))
+  ->condition('s.status', 1,'=')
+  ->condition('s.type', 'module','=')
+  ->execute();   
+  foreach($result as $val) { 
+  $system[$val->name]=unserialize($val->info); 
   }
   //convert data
-  foreach($system as $module => $info) {
+ foreach($system as $module => $info) {
     //account for the other package in module listing
     if (!isset($info['package'])) {
       $info['package'] = 'Other';  
@@ -107,9 +108,12 @@ function _profiler_builder_info_file(&$info, &$vars, &$drush) {
   $vars = "; Variables\n\n";
   //array of values we know to ignore automatically
   $ignore_list = _profiler_builder_ignore_list();
-  $result = db_query("SELECT name FROM {variable} WHERE name NOT IN (". db_placeholders($ignore_list, 'text') .")", $ignore_list);
-  while ($value = db_fetch_array($result)) {
-    $val = variable_get($value['name'], '');
+   $result = db_select('variable', 'v')
+  ->fields('v',array('name'))
+  ->condition('v.name', $ignore_list,'NOT IN')  
+  ->execute();  
+   foreach($result as $value) {
+    $val = variable_get($value->name, '');
     if ($val != '') {
       if (is_array($val)) {
         foreach ($val as $key => $ary_val) {
@@ -119,26 +123,26 @@ function _profiler_builder_info_file(&$info, &$vars, &$drush) {
                 foreach ($ary_val2 as $key3 => $ary_val3) {
                   if (is_array($ary_val3)) {
                     foreach ($ary_val3 as $key4 => $ary_val4) {
-                      $vars.= 'variables['. $value['name'] .']['. $key .']['. $key2 .']['. $key3 .']['. $key4 .'] = '. $ary_val4 ."\n";
+                      $vars.= 'variables['. $value->name .']['. $key .']['. $key2 .']['. $key3 .']['. $key4 .'] = '. $ary_val4 ."\n";
                     }
                   }
                   else {
-                    $vars.= 'variables['. $value['name'] .']['. $key .']['. $key2 .']['. $key3 .'] = '. $ary_val3 ."\n";
+                    $vars.= 'variables['. $value->name .']['. $key .']['. $key2 .']['. $key3 .'] = '. $ary_val3 ."\n";
                   }
                 }
               }
               else {
-                $vars.= 'variables['. $value['name'] .']['. $key .']['. $key2 .'] = '. $ary_val2 ."\n";
+                $vars.= 'variables['. $value->name .']['. $key .']['. $key2 .'] = '. $ary_val2 ."\n";
               }
             }
           }
           else {
-            $vars.= 'variables['. $value['name'] .']['. $key .'] = '. $ary_val ."\n";
+            $vars.= 'variables['. $value->name .']['. $key .'] = '. $ary_val ."\n";
           }
         }
       }
       else {
-        $vars.= 'variables['. $value['name'] .'] = '. $val ."\n";
+        $vars.= 'variables['. $value->name .'] = '. $val ."\n";
       }
     }
   }
@@ -146,12 +150,11 @@ function _profiler_builder_info_file(&$info, &$vars, &$drush) {
   $drush = '';
   foreach ($data as $package => $projects) {
     foreach ($projects as $project => $version) {
-      $drush.= 'projects['. $project .'] = '. str_replace('6.x-', '', $version) ."\n";
+      $drush.= 'projects['. $project .'] = '. str_replace('7.x-', '', $version) ."\n";
     }
   }
   return 1;
 }
-
 //helper function to gather ignored values
 function _profiler_builder_ignore_list() {
   return array(
