truncate before overwritten

make sure it's a clean overwrite