babycat: implement concatenation of N files in one