debug. callbacks.