better logging of required fiels