modified myopt_AddGroup