optimize group lookups, support actions that act on selected rows
fix caching