memory map refactor v1