fix factoryMethod in services