some work on memory access to replace blackmagic