added fsync controller by xpaum