- modify so that generated JSON will have "responseIDs"
 - minor cleanup