xreadlines is deprecated