added check for a local config file