got repl mostly working