bug fix, and add destroy category support