added extract_outfield_from_dict and output_field functions/classes