fixed to work with PTY enabled ssh
lets stop doing this for now; maybe we don't need to do this "trick" anymore?