new function to reduce redundancy in file.exists to save or load blocks