continuing work on x509. End of semester.