proposed code for removing private bugs and attachments