added automatic cert check option