fix bug when blank index file is used
simplify use_cache representation