work on authorization for replication