dnswl: moved config loading into function w/cb