check in with my old EZd before updating

I think mine was wrong - set Z using Q and g of d1 instead of Q and g
of (A, L)