add kill functionality