add client and main