I forgot to copy read code from readConfig to readFactoryDef, fixed now