Modified client with inner deferreds
actual working inner deferred