set up factories as dependancies of call command