updates for closetag plugin