fixed the way local config is used