fixed UART recv routine; added additional logs