adds some non-branch related robustness in front end and magic