fixing config issue?
refactor currLoc/prevLoc to enable use of one global var