added id array capability to except and retain