seperate map anchoring code into assembly.allmaps