deferred.resolve rather than q.resolve