added try error catch for cache that's missing cache.current_stack