various cleanups, automatically create cache folders