qt client and some fixes