base Template setup