ads memory management and devices