add callback registration for ajax logging etc