some debug code in qt client temporary