added handling for bad ssl certs - pkg ver