merge the component objects into 1 file