new r/w mode for log files