implement repl11begin