handler from deferred.py documentation #620