added passing of error through deferred rejection