handle race condition that may arise between accept and add