raise processevents loop in main.cpp to 8