fixed newFile() to actually do something