event loop notes