updated for region group support
though only with flat files yet