Revert "bugfixes"

Reverts vahidhedayati/termssh#1