add a check to prevent skipping checkout steps