make log saving optional, disabled by default