fix api add serial to decode routine