some small thread issues