moved patch new_context to Template
min
updated version