emu helper
table helper for deep copy
reorganize
map is now a class