serializing client and location