works. still workng on replication to server
still working on replication local to server