ugly cache clean code, not in use