template base and settings