input file fixes