segment parsing and field loading