renamed factory to manager