fixed ruby line reading.