running event loop once in client mode