add underscore shim and monkey patch template method