debug sanity check