replace sleep module, update csv-write-stream