add offline mode with ping https://api.github.com