print formatted namelist from map, not tree
remove dead code