scripts for gcode generation and misc