updated for template pathing