added uart debugging