add duration_text helper. fix log polling