fix some issue
add send command function