Seol mar théacs é seo: Layered structure and reference in a functional perspective