generating gcode from both