extracted loadingprocess to a new class (AppLoader)