bugfix for write_file - let's not use whoareyou too early