groups seem to work

renamed 'ids' to 'hierarchy'
works with single group, need to test with multiple groups
updated for group object format