removed fsync
added franco's fsync