location server: parsing and returning messages.