added code for monitoring deferred resume