update template and crereader.lua