added generic wfm method and depend on tm to build the wfm