add doing event loop in calling thread without making new thread.