support REPL readline history save and load