fixing REPL