added client::connect callback