fixed RPC uri resolving problems