simplified RunEventLoop loop