changed the step to only occur if there's a GUI