added id length check
added remove option for exceptions