(latest hexdumpe)
(minor tweaks to reduce variable scope)