load and merge config