detect required files