wip
fix ssh emulated server reconnect issue
changed server mock for testing