replace wfMsg with wfMessage