only use replace on tagged tablenames