issue with type code for certificates solved