add first (debug) memory management