added max wal size option