added subscribe method and retreival of subscriptions