added sendfile support to raw mode