added ability to avoid ssh when local