switched to readline