remove distance from ecapplication (is now static in utils)