attach and detach only take arrays of IDs