update core and tempalte