introduce a bit of sleep time to reduce cpu load