add support for callHandler in top level API object