to add the interface for offline callback