add support for empty tags