add a sanity check