add cache and logs