support for callable classes rather than closures