prevents data race condition in client subscriptions