updated worker thread to do some IO rather than just go to sleep