merges modules