fixed tpl problems with plugin origin
added plugin var