refactor binlog

can not compatibility