first version of sanity checks