update doc and spec