added handling for FileNotFoundException