_core classification now returns distance as well