basic sanity checking