use of onResourceTimeout event