solved TODO go offline mode when request fails