add send command func