added support for Ioc using structure map