merge cfg with params