added notifyDetach