reordered kb and name, added group by name and args