avoid traps in repl except when evaluating the expression