comments for promise
fix compatible in define and add comment