added wpm_deactivate()