pkg version update function consolidated