merge module defs