merge mgs