organize subgroups into lists

Fixes #3