replace file system check with WF check