allow network communication on main thread