polling on program wait