client debug. debug cleanup