add update script and xptemplate submodule