break up long lines
generalise survey workflow handlers