renaming $fields to $conf