import readline for better text handling.