modify packaging script