Overhauled the locationhandling system. have some communication between logic and gl