added code to persist the subscriber