validation copied from m0dprobe