attach eventStream dynamically