implemented rmt execution catching command in ssh session + some small changes