added the option to disable event raising
added the possibility to disable function callbacks