add connect and acknowledge