to invoke repl with context