* factor out serial hardware init