added alternate method of specifying private key as a config var