added history support to readline