checking and unchecking resources actually works!