start of repl work