t8:added tag code and tests