added tpl param support and tags plugin