some minor thread basics