better memory management for avail config