added deprecation warning for callbacks