make sendfile overridable