fising recently broken repl (had used | instead of , in when clauses)