fixing destroy, adding branch support