added check for local settings to setup.