added metrics
added the SStable writer