added detach method for completeness