checking if key file exists before bootstrapping