WIP: add groundset parsing