improved support for ommited start/end tags