update xtemplate loader api