added ability to pass config directly to ioc load() method and use that as constructor args