upgrade package definition to v2