added bad cluster checking and orphaning edits