added support for multiple subscriptions