better dsl for calling into rpc server