writing to file works now