begin breaking up main event loop