set up cache, fixed typos