add chmod for external files