almost done

the events are being treated now I will begin to treat the distance and
time so the callbacks are called correctly