bug 676: with messing about got at least an inner maxloc loop working