add caching  for better management of missing files