bug: incorrect behaviour when missing input file