support runtime command for xtemplate. Fixes #637