removed the delete file option as it creates a lot of unnecessary overhead