add debug to show callback time