work so far on the certificate generator