actually write the file, dope