defDef being always a deferred/promise if I well remember we should use defDef.then() here instead of when()