preparing to port readline