add missing stepalternatives and suppress redundant [] markers