poll before sleep