fixed missing getRefreshFn function