add handling of NoSuchFileException