add ability to specify cache file to cfg