rewrite Worker to ensure that all data is written