works when received data endswith \n