added subscribe and unsubscribe API's