small stuff
more debugging, moved all window creation and desrtuction out of callbacks