extract some paths to a config module