added some scratch/temp code to test bytehack/SZ/MSG idea. Closures?