fixes to participant query script