pole swap
add some debugging info
tweaks to companion map
fix bug where layer switch did not fully purge old tiles from index