tweaked to check proper location of generated certs