enable dynamic fsync
remove some unused stuff