added more parameters to readline in available