fix bug in temporary file extraction and caching of loading status