added getTokenReplica method