add file existence test