upadte template to work with new winersmith