remove thread local ptr
more comments