add serial code