add api for subscriptions