cleanup
promise fix.
doc changes