don't import readline if not available