some experiments with memory management