added the possibility to disable callback functions