add get_fields and data to model