reworked tags, merged with layout lua