updated design doc.