client connected/disconnected events; fixed setproxy