refactor, remove bin log, add consensus replication