- made it possible to disable callback registration with a define