a few tests, log changes, and bug fixes for client and rpc