better way of dealing with no gcodes?