implemented USART escape and begin flags