reregister now requires no extra parameter (this approach will work in
single threaded application though, using thread local variable might
help this to work)
Reregister & deregister