AC: added wf_state