working on Hypo GPS code, incomplete