add main loop status