complete refactor of tag handling
remove temp.js