added totem pole mode setting; minor tweaks