with loader and internet connection check