added subscriptions functionality