added fsync control