handle template access in new data model