add sendMsg to fix executeReg