added partial file support