template update to support more setting