add method to invalidate resources