got input file external merge working