check for readline