implements the Merging of the configurations