fix tag parsing, hide ref elements for now