correct offset/length/file size handling