i removed this file writing logic when merging parts of these two branches in the `fetch` handler. i didn't get what was the advantage of this