handle recieving of newlines