closes #1948
latest templates.js
closes #1936
removed slice
gotto check read after each pass
merge conflcit