added uart interface for debugging