correct a glitch, we need to check the right private key file and not the directory...