fixed a small code change so that we can use a worker and an asyncsubscriber at the same time