now make remote connection to the backend after we are told to do so by emacs