use final args
extract shouldRefreshFiles