new feature: check file existence