sanity checks in more places