added the ability to create the file if it doesnt already exist