provide one method to add gcode to blocks, reduce code duplication