csvwriter & heapmap debug