fixed random tid; improved code of probe