clean up repl API