fixed serial read bugg, end on new line instead of last char