add killused script function