fixing issue with certificates