file existence verification added