syncing the fork, fixing a bug about eof