getting server data and parsing it