 #define dip3 9
 #define dip4 10
 
-#define buffersize 200
+#define buffersize 128
 
 #define KEYPAD_0 234
 #define KEYPAD_1 225


  payload = SD.open(scriptName);
  if(!payload){
    #ifdef debug 
      Serial.println("couldn't find script: '"+String(scriptName)+"'");
    #endif
    return;
  }else{
    Keyboard.begin();


  if(space == -1) runCommand(0,bufSize);
  else{
    if(equalsBuffer(0,space,"DEFAULTDELAY") || equalsBuffer(0,space,"DEFAULT_DELAY")) defaultDelay = getInt(buf,space);
    else if(equalsBuffer(0,space,"DEFAULTCHARDELAY") || equalsBuffer(0,space,"DEFAULT_CHAR_DELAY")) defaultCharDelay = getInt(buf,space);
    else if(equalsBuffer(0,space,"DELAY")) delay(getInt(buf,space));
    else if(equalsBuffer(0,space,"STRING")){
      for(int i=space+1;i<bufSize;i++) KeyboardWrite(buf[i]);
    }
    else if(equalsBuffer(0,space,"REM") || equalsBuffer(0,space,"REPEAT")){}
    else{
      runCommand(0,space);
      while(space >= 0 && space < bufSize){
