move mappings into submodules
refactor memory mappings