implement #228 static access to currently executing thread