if not(flags & FROM_KERNEL)  to prevent bugs