added tech level factory and refactored controller