small changes to repl code