fixed the config whitelist/directories bug