substitute real callbacks