refactor tag module and metric module, amend rule ftl