updated subscriberFactory.js with latest changes