implemented simple receiving data from clients