possible fix for heap space with large topologies