use the after_connect/reconnect technique