remove some copy/paste around g-code simulation