error handling if inputfile does not exist