added option to define types of subscriptions