merge mains and other params