add doc, fix issue