now handles ssh remotes