add receiving serial code for header