fake an api for no internet connection