refactor sending serial text