using resource cache