removed pubkey extration