added verification of gcode step to print