postRPC with promises