receive name and data from server