w00t! bug-free!

fixed bugs in trackAndGetLocation functions