bug fix: add error handling for preventing duplicate file