package update and optimisation