add ability to see if file already existed