manually added event loop for NetworkEvents to work.