settings.tpl partially coded