changed so that Q calls can work with version 0.8 or 0.9 wrt allResolved or allSettled