detach multiple instances