v7clean utility script from http://pastebin.com/BtSdvrXM