added named groups. fixes #7