added publicKey to config