simplified get_field_by_name implementation
moved get_field to new API
refactored get_field_by_name to new API