use the main package identifier only if not present in branch/tag