error hanlding
cache update