trying to get data locally before internet connection