made preparation for optional semantic markup (oto) steps more robust