reading until newlines are received is not working.