revised pkg system