replication move to server layer
achive the basic replication components in server