routing improved, added debug window and message queue