added support for setup function on object for injection