trying more stuff to not seg fault when retrieving the thread func's return val