add a public_key method and remove public_keys from path