added a resolving callback to ioc container.