add function to extract endpoint survival from output