Jerry add connection logic to AG3