remove unnecessary attributes
allow disabling logWrites