debug logging ... need to sort a way to cleanly propergate the result out up the handler stack ...