debug messages in main loop