added timed polling