support apply template from a remote tag(#142)