to do: pubkey configuration