working on the caching and serving of files
kind of work. still better handling is needed