pack script fixed