resolved ioc factory issues