updated example to use readline instead of cli-prompt