patched templates