support for memoize so variables can be pulled out any time