readline timeout fix