changed my mind about connect fragment, there also might be a race condition