adding fix when using files array format and expanding