update package compilation code