add sendwait and remove last kill