using uart_nwrite instread of uart_puts