add send command function
delete temp files