make repl only use state passed through