your reply also helped me figgure out my problem
as i was printing to the session and then starting to read it
wich was obviously wrong...also becuase $session was used
in both threads i locked it in each of them so i could
use it safely and shared it between them using
threads::shared