update design doc; fix domain validate bug.