fixed bugs with running an ssh command