traced the slowdown to the callback