added base gps code