added handled reference to main callbacks