to refactoring communicate with the remote machine