debugging the offline mode