merging factory files into 1