added RemoteError type