now generated factorie code compiles