added support for tag attributes