make sure wcfg is not null