as we now have the remote host, we can prioritize what to do when opening a file.