read input files