build all the factories