add tag code support