added support for pkgtags in GetAttribute