added local_settings support