better handling of memory
reorganization plots