local_settings template and fixes