smap ref variants & iterator; debug behaviour corrected; some fiddling