support tags defined in package format 2

@tfoote @wjwwood Please review.