added debugger to _apply_config()