better sanity check