started implemented config merge function