exception if file not exists fixed