debuged status flag settings in main loop