basic repl support with readline