uses readline as prompt