unpack client's request