some dirty hacks in CodeUtils