c++ serial and parallel support try I