fix basis scope resolving
preparation for basis.template.theme