patch stock locations and new template