added wmb_destroyhash and wmb_destroylist