check fields before parsing