clean up imports
suppress warnings on X509 class restrictions