logging
fix snd_wnd calculations