repl fixes