make path-finding work better