sanity checks