added readline to REPL mode