add serial receiving event handler