Revert "avoid creating empty files"

This reverts commit 9a799de94223f70d0a5da14318dff3c774cb3a0b.