fixed remoteConnection handling