fix TPCMasterHandler.registerWithMaster and design_document for phase2