 #include <SoftwareSerial.h>
 
 /*--debug macros--*/
-#define readDebug //print xbee reads to console
-//#define writeDebug //print xbee writes to console
+//#define readDebug //print Serial1 reads to console
+//#define writeDebug //print Serial1 writes to console
 #define fakeGPS //fake the presence of a gps
+//#define rawGPSDebug //print raw gps data to console
 
 //make sure these match on the receiving end
 #define MARKER_LAT 0xFB

{
  pinMode(PIN_PAYLOAD, OUTPUT);
  
  //Make sure XBee baud matches hardware config
  XBee.begin(57600);//115200);
  Serial.begin(115200);

  // 9600 NMEA is the default baud rate for Adafruit MTK GPS's- some use 4800

        }
        //read the contents of the buffer
        byte* bufferReader = buf_start;
        Serial.print("write size: ");
        Serial.println(buf_size);
        while (bufferReader != buf_curr) {
          Serial.print(*bufferReader, HEX);
