change connect callback