fixed bug where unused certs were not being deleted.