add support for delegating methods to a callback