improved new interface for keyword grouping