add serial debug control