gcode mock read/write