modify package references.