renamed a group; added new group; added check for prod param if nil