fixed #10, context not preserved in REPL