several fixes in proxyserver