add document
promise fix