update package and index