little tweak to memoize function - pop refresh argument