properly deleting module dependencies for streams