implemented cache tree without having to use Apps