restored basic longpoll functionality