added newline helper to uart write fns