adding a file and writing to it works now