implementation of find replica and client req handling