better sanity checks