add release tracking and a stats map to record duration and count