add doc and extension