changed nodefailed handler to method