fix client parsing