reset writer (not actually needed, but cleaner)