added exception handling for no file found