serial monitor behaving properly