serial code is ignored in the normal project