repl improvements