block event loop and trampoline