make the sleep time configurable