moved streamline tracing into a module