update connector api with log, and handle idle