change offset type to support large file
change test cases