implement gcc connect sequence