moved file permissions to extract task