call handler on connect