improved initialization

bug fixed on slow internet connection