fixed race condition involving multiple sites algorithm!