support for invoking rpc endpoints (#2)