controller factories has been moved to main.cpp