get rid of compat_misc