small optimization in ssh-ng format