s/m/mode/ and be careful regarding hazard in the macros.py
switch to capitals to try and avoid accidental capture
tweak comment
s/id/sliceId/ and s/n/numSlices