make registerTypes and registerMandatory mandatory