implement cmd module
modify send code