need to check if key file exists