added option to disable local cache file