long polling script