new structure for appier and templates