scan working with serial and mac