init repl with namespace