Magic to make callbakcs threadsafe by default
Some fix for magic stuff