added long polling for logs