made sure deferred.open, deferred.close, and deferred.getLength work properly