creating pubkeys earlier as needed