eliminated a syscall for fast read path, fixed a bug with file lengths