throw error on missing input file