convert a if() into a switch() to ease addition of new tags to probe