write full text

before i wasn't wiping entire file.

fixes #25