improve repl