rough draft of some of the master event loop events