removed old unused cert check