added running time and polling check