update to use script directory as default
update to use simple file cache when available