reading to binary log format