use local var from 287a5b2a
make autogroup case insensitive
adapt to renumbered groups