basic repl loop in place