add auto cache clearing