proper handling of incoming replicaToken on master side