doing some sanity checking