logging fix + caching crash fix