added noEventLoop flag