working on longpoll