more reorgs, add main which runs group as defined in JSON file