basic working implementation of push replication