get and using the defer object
fix a typo
consume the promise