block main loop