add local_settings detection