replace deprecated sendfile with SendFile