make distances configurable