include @zero-impact's reduction code
indent some mako formatting for vim code folding