cleanup of metrics library