better cache clearing