get rid of compat_misc
use local cunit