adding functionality to provide privatek key file