further work on debug window