generate manually path to pass to invalidateRegex