added best-effort-long-file support
added checkRequest functionality
added finalizeSegment functionality