added check for start bit and resend if needed