r10421: following on discussions with simo, I have worked out a way of