replace afn with 'loop' in most places
.
purge the maze of uniq's in 'zap'