changed from using readline to prompt-lite