branch for duplex cosocket support