modification reguarding exeptions with non existant file