implemented server read functionality