repl mostly in place