       }      
     }
     //moves to 0
-    stepperYcurrPosition = tableysteps+1000;
+    stepperYcurrPosition = tableysteps+10000;
     stepperYdestPosition = 0;
+    lasty = 0;
     while (stepperYdistanceToGo() != 0) {
       stepperYrun();
     }      
     ////////////////////////////////////////////////////////////// E zero
     Serial.print("{ \"log\" : \"Attempting to test E axis\"}");   
-    stepperEdestPosition = 6400;  //1 rotation
+    stepperEdestPosition = 0;  //1 rotation
     while (stepperEdistanceToGo() != 0) {
         stepperErun();
       }      
     //moves to 0
     stepperEcurrPosition = 0;
     stepperEdestPosition = 0;
+    laste = 0;
     Serial.print("{ \"log\" : \"Extruder stepper axis zero success\"}");  
     
 }

double stepperZdestPosition = 0;
double stepperZtimer = 0;
int    stepperZtoggle = 0;
double stepperZspeed = 60;

int motorpinEstep = 28;
int motorpinEdir  = 29;

  if (cmd == "G92") {   
      aJsonObject *jsonpe = aJson.getObjectItem(msg, "e");
      if (jsonpe) {
        stepperEcurrPosition = 0.0f;
        stepperEdestPosition = 0.0f;
        laste = 0.0f; 
      } 
    }///END G92
    
