added backup for SNR configs, fixed terminal restore after ssh connection