support deferreds
Merge pull request #5 from craigspaeth/master

support deferreds