support tags defined in package format 2 (fix #43)