clean up error messages and add additional RPC methods