adjusting getfile for security headers