fix remote server bug
rename remoteServer to nisEndpoint