adding promise dependency