tmp hack for problems with memoized which