update to correctly use template settings