add certs functions