fixed check_cert
extras