fix most important part of legacy examples